package cn.zzuisa.news.test;
/**
 * @ClassName:     test.java
 * @Description:   TODO 
 * @author        	zzuisa
 * @version         V1.0  
 * @Date           2018年9月16日 下午8:11:03 
 */
public class test {
	public static void main(String[] args) {
		String s = "3fdsgg";
		String s2 = "fdsg5g";
		String s3 = "fdsgg";
		for(int i=0;i<s.length();i++) {
			char fir = s.charAt(i);
			if (fir>='0' && fir<='9') {
				System.out.println(fir -'0');
				return;
			}
		}
		System.out.println(-1);
	}
}
